﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EStore.Core.Orders;
using EStore.Core.Customers;

namespace EStore.Core.Orders
{
    public class OrderFactory : IOrderFactory
    {
        public Order CreateOrder()
        {
            //TODO 生成一个订单流水号
            var newOrderNumber = "W123456";
            return new Order { ID = newOrderNumber };
            //throw new NotImplementedException();
        }

        //public Order CreateOrder(IList<ProductForSale> products, ShippingAddress shippingAddress, Delivery delivery, Pay pay, Invoice invoice)
        //{
        //    //TODO  检验产品、数目、价格
        //    //TODO  检验收货人地址信息
        //    //TODO  检查费用信息
        //    //TODO  冻结库存
        //    throw new NotImplementedException();
        //}
    }
}
